package mtn.bowen.yan.server.model;

import lombok.*;

/**
 * @author <a href=mailto:yanbowen90@foxmail.com> bowen.yan </a>
 * @version 1.0
 * @description: TODO
 * @date 2021-10-23 9:21 PM
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Builder
public class VarietyDishes implements Comparable<VarietyDishes> {

    /**
     * 自增主键
     */
    private Integer id;

    /**
     * 类型：1：早餐、2:午餐、3:晚餐
     */
    private Integer type;

    /**
     * 种类
     */
    private Integer kind;

    /**
     * 菜品数量
     */
    private Integer quantity;

    /**
     * 星期
     */
    private Integer week;

    @Override
    public int compareTo(VarietyDishes varietyDishes) {
        return this.kind - varietyDishes.kind;
    }
}
